package com.outfoodmanage;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;

import lombok.extern.log4j.Log4j2;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * 启动程序
 *
 * @author Vean
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class ,DruidDataSourceAutoConfigure.class})
@EnableDubbo
//表示通过aop框架暴露该代理对象,AopContext能够访问
@EnableAspectJAutoProxy(exposeProxy = true)
//指定要扫描的Mapper类的包的路径
@MapperScan("com.outfoodmanage.**.mapper")
@Log4j2
public class OutfoodmanageApplication {
    public static void main(String[] args) {
//        Main.main(new String[""]);
        // System.setProperty("spring.devtools.restart.enabled", "false");    	
        SpringApplication.run(OutfoodmanageApplication.class, args);
        StringBuilder sb = new StringBuilder();
        log.info("                                                                                \r\n" + 
        		"                                                                                \r\n" + 
        		"                                                                                \r\n" + 
        		"                                                                                \r\n" + 
        		"                     ,--,                                                       \r\n" + 
        		"  .--.--.          ,'_ /|                                 .--.--.    .--.--.    \r\n" + 
        		" /  /    '    .--. |  | :    ,---.     ,---.     ,---.   /  /    '  /  /    '   \r\n" + 
        		"|  :  /`./  ,'_ /| :  . |   /     \\   /     \\   /     \\ |  :  /`./ |  :  /`./   \r\n" + 
        		"|  :  ;_    |  ' | |  . .  /    / '  /    / '  /    /  ||  :  ;_   |  :  ;_     \r\n" + 
        		" \\  \\    `. |  | ' |  | | .    ' /  .    ' /  .    ' / | \\  \\    `. \\  \\    `.  \r\n" + 
        		"  `----.   \\:  | : ;  ; | '   ; :__ '   ; :__ '   ;   /|  `----.   \\ `----.   \\ \r\n" + 
        		" /  /`--'  /'  :  `--'   \\'   | '.'|'   | '.'|'   |  / | /  /`--'  //  /`--'  / \r\n" + 
        		"'--'.     / :  ,      .-./|   :    :|   :    :|   :    |'--'.     /'--'.     /  \r\n" + 
        		"  `--'---'   `--`----'     \\   \\  /  \\   \\  /  \\   \\  /   `--'---'   `--'---'   \r\n" + 
        		"                            `----'    `----'    `----'                          \r\n" + 
        		"                                                                                ");
        System.out.println(sb.toString());
    }
}